<template>
  <div class="detail">
    <DetailBanner></DetailBanner>
    <DetailHeader></DetailHeader>
    <DeatailList :list="list"></DeatailList>
    <div class="content"></div>
  </div>
</template>

<script type="text/ecmascript-6">
import DetailBanner from './components/banner.vue'
import DetailHeader from './components/Header.vue'
import DeatailList from './components/list.vue'
import axios from 'axios'
export default{
    name:'detail',
    components:{
      DetailBanner,
      DetailHeader,
      DeatailList
    },
    data(){
      return{
        list:[{
          title:'成人票',
          children:[
            {
            title:'成人三观联票',
            children:[{
              title:'成人三观联票 - 连锁店'
            }]
          },{
            title:'成人三观联票',
          },{
            title:'成人三观联票',
          }]
        },{
          title:'儿童票'
        },
        {
          title:'学生票'
        },{
          title:'特惠票'
        }]
      }
    },
    methods:{
      getDetailInfo(){
        axios.get('/api/detail.json',{
          params:{
            id:this.$route.params.id
          }
        }).then(this.handleGetDataSucc)
      },
      handleGetDataSucc(res){

          console.log(res.data)

      }
    },
    mounted() {
      this.getDetailInfo()
    }
}
</script>

<style lang="stylus" scoped>
.content
  height 800px 
</style>
